package com.mida.dms.knw.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.Map;


/**
 * 节点以及常用语
 * @author conyfrommars
 *
 */
@Setter
@Getter
@ToString
@ApiModel(description = "节点以及常用语")
@Data
public class KnwCompositeInstanceExcelVo implements Serializable {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "常用语树型分类结构名称", required = false)
    private String commonWordsTreeName;

	@ApiModelProperty(value = "上级值树型分类结构名称", required = false)
    private String surperCommonWordsTreeName;

	@ApiModelProperty(value = "标题", required = false)
	private String compositeInstanceName;

	@ApiModelProperty(value = "超声所见", required = false)
    private String usContent;

	@ApiModelProperty(value = "超声诊断", required = false)
    private String usDiagnosis;

	@ApiModelProperty(value = "用户ID", required = false)
    private String userId;

	/**
	 * 上级值取得方式 0:soid在数据库中 0以外：soid重新生成
	 */
	private String superDataSetFlg;


    public KnwCompositeInstanceExcelVo() {

	}

	public KnwCompositeInstanceExcelVo(Map<String, Object> map) {
		for (Map.Entry<String, Object> entry : map.entrySet()) {
			if ("树型分类名称".equals(entry.getKey())) {
				this.commonWordsTreeName = (String)entry.getValue();
			}

			if ("上级树型分类名称".equals(entry.getKey())) {
				this.surperCommonWordsTreeName = (String)entry.getValue();
			}

			if ("标题".equals(entry.getKey())) {
				this.compositeInstanceName = (String)entry.getValue();
			}

			if ("超声所见".equals(entry.getKey())) {
				this.usContent = (String)entry.getValue();
			}

			if ("超声诊断".equals(entry.getKey())) {
				this.usDiagnosis = (String)entry.getValue();
			}

			if ("用户ID".equals(entry.getKey())) {
				this.userId = (String)entry.getValue();
			}

		}
	}
}